package me.sdevil507.biz.fruit.service;

import me.sdevil507.biz.fruit.dto.FruitDTO;
import me.sdevil507.biz.fruit.dto.FruitParamsDTO;
import me.sdevil507.biz.fruit.po.FruitPO;
import me.sdevil507.supports.result.ApiResultDTO;

import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface FruitImportExportService {

    /**
     * 导入成果记录
     *
     * @param file excel文件对象
     */
    ApiResultDTO importFruitByExcel(File file, String type, String activityProdType);

    public List<Map<String, String>> getExcelFields(FruitDTO searchDto);

    void exportFruit(FruitParamsDTO fruitParamsDTO, String[] splitData, List<FruitPO> list, String exportType, HttpServletResponse response) throws IOException;
}
